package com.dorado.example.pojo;

import com.dorado.kernel.excel.annotation.CellField;
import com.dorado.kernel.excel.annotation.ExcelSheet;
import com.dorado.kernel.excel.resolver.ExcelAble;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 *
 */
@Data
@ExcelSheet(name = "Sheet名称")
//@ExcelSheetTitle(value = "阿京网集团报表统计",heightInPoints = 30)
public class Shop implements ExcelAble {
    //@ExcelStyle(border = BorderStyles.BORDER_DASH_DOT,color = ExcelColors.AQUA)
    //@ExcelFont(fontHeightInPoints = 12,fontColor = ExcelColors.RED ,fontName = "华文琥珀")
    //@CellField( value = "店名", groups = {Clerk.GroupB.class, Clerk.GroupA.class})
    @CellField( title = "店名")
    private String name;
    //@ExcelStyle(backgroundColor = ExcelColors.YELLOW,fillPattern = FillPatternStyles.THIN_HORZ_BANDS)
    //@ExcelFont(fontHeightInPoints = 14,fontColor = ExcelColors.BLUE , fontName = "Bradley Hand ITC")
    //@CellField( value = "收入",groups = {Clerk.GroupB.class, Clerk.GroupA.class})
    @CellField( title = "收入")
    private Integer income;

    //@CellField( value = "员工", groups = Clerk.GroupB.class)
    @CellField( title = "员工")
    private List<Clerk> clerks ;

    @CellField( title = "门店编码")
    private String shopCode ;

    //@CellField( value = "店长",groups = Clerk.GroupA.class)
    @CellField( title = "店长")
    private Manager manager;


    //@ExcelStyle(valign = ValignStyles.VERTICAL_TOP,halign = HalignStyles.ALIGN_RIGHT)//垂直靠上，水平右对齐
    @CellField( title = "创建时间",format = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;

    @CellField( title = "店铺类型",readConverterExp = "1=超市,2=商场,3=餐饮" )
    private Integer shopType;


    public Shop() {
    }

    public Shop(String name, Integer income) {
        this.name = name;
        this.income = income;
    }

}
